package com.ibm.law.service.system;

import java.util.List;

import com.ibm.law.domain.Employee;
import com.ibm.law.domain.Salary;
import com.ibm.law.service.DataAccessService;

public class SalaryService extends DataAccessService<Salary> {
	public List<Salary> getSalariesByEmployee(Employee employee) {
		String jpql = "select o from Salary o where o.employee=?";
		return entityManager.createQuery(jpql, Salary.class)
				.setParameter(1, employee).getResultList();
	}
}
